package com.ruoyi.mes.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购需求对象 phg_requirement
 * 
 * @author CFL
 * @date 2024-04-28
 */
public class PhgRequirement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 需求单id */
    private Long id;

    /** BOMid */
    private Long bomId;

    /** 物料id */
    private Long matId;

    /** 订单id */
    private Long orderId;

    /** 产品id */
    private Long proId;

    /** 需求数量 */
    @Excel(name = "需求数量")
    private Long reqNum;

    /** 采购状态 */
    @Excel(name = "采购状态")
    private Integer state;

    /** 物料计划id */
    @Excel(name = "物料计划id")
    private Long matPlanId;


    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderSn;


    /** 产品名称 */
    @Excel(name = "产品名称")
    private String proName;


    /** 产品编码 */
    @Excel(name = "产品编码")
    private String proSn;

    /** 物料计划编号 */
    @Excel(name = "物料计划编号")
    private String sn;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String matSn;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String matName;

    /** 计划截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planEndDate;

    /** 逻辑删除;0：存在；1：删除 */
    private Integer isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }
    public void setReqNum(Long reqNum) 
    {
        this.reqNum = reqNum;
    }

    public Long getReqNum() 
    {
        return reqNum;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setPlanEndDate(Date planEndDate) 
    {
        this.planEndDate = planEndDate;
    }

    public Date getPlanEndDate() 
    {
        return planEndDate;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }
    public Long getMatId() {
        return matId;
    }

    public void setMatId(Long matId) {
        this.matId = matId;
    }
    public Long getBomId() {
        return bomId;
    }

    public void setBomId(Long bomId) {
        this.bomId = bomId;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public void setMatPlanId(Long matPlanId)
    {
        this.matPlanId = matPlanId;
    }

    public Long getMatPlanId()
    {
        return matPlanId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }
    public void setOrderSn(String orderSn)
    {
        this.orderSn = orderSn;
    }

    public String getOrderSn()
    {
        return orderSn;
    }
    public String getProSn() {
        return proSn;
    }

    public void setProSn(String proSn) {
        this.proSn = proSn;
    }
    public void setMatSn(String matSn)
    {
        this.matSn = matSn;
    }

    public String getMatSn()
    {
        return matSn;
    }
    public void setMatName(String matName)
    {
        this.matName = matName;
    }

    public String getMatName()
    {
        return matName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bomId",getBomId())
             .append("matId",getMatId())
            .append("orderId", getOrderId())
            .append("proId", getProId())
            .append("reqNum", getReqNum())
            .append("state", getState())
            .append("planEndDate", getPlanEndDate())
            .append("isDeleted", getIsDeleted())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedDate", getUpdatedDate())
            .append("remark", getRemark())
            .append("sn",getSn())
            .append("matPlanId", getMatPlanId())
            .toString();
    }
}
